Destroy widgets _after_ propagating unrealize signals through the widget
authorOwen Taylor <otaylor@redhat.com>
Wed, 9 Dec 1998 06:36:57 +0000 (06:36 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Wed, 9 Dec 1998 06:36:57 +0000 (06:36 +0000)
commit207757e70d8b2d9aa8335d968fd7ac79796264ab
treeae572a9674c8dc7b8a0ae7200e6d4e7c5c7632e8
parentaf84227184f9cbe2c87f0aa09d5c93564150bb70
Destroy widgets _after_ propagating unrealize signals through the widget

Mon Dec  7 10:27:09 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkwidget.c: Destroy widgets _after_ propagating unrealize
signals through the widget heirarchy. This is unpleasant, as it
causes more X traffic, but is necessary, because we have to clean
up our Input Contexts before destroying the X windows.
(from matsu-981109-0.patch)

Mon Dec  7 10:18:18 1998  Owen Taylor  <otaylor@redhat.com>

Applied gtk-a-higuti-981202-0 :
[ a-higuti@math.sci.hokudai.ac.jp (Akira Higuchi) ]

* gdk/gdk.h gdk/gdk.c
(gdk_mbstowcs): New function. Nearly equals to mbstowcs, but
implemented by a combination of Xlib functions, so
it works even with X_LOCALE.
(gdk_wcstombs): New function.
(g_mbtowc): Removed. No longer needed.

* gdk/gdk.h gdk/gdkfont.c gdk/gdkdraw.c:
        Added _wc() variants to gdk_text_width(),
gdk_char_width(), gdk_draw_text(),

* gdk/gdki18n.h
(mblen, mbtowc, wctomb, mbstowcs, wcstombs,
 wcslen, wcscpy, wcsncpy):
Removed. No longer needed.
(iswalnum): Removed.
(gdk_iswalnum): New macro.
(gdk_iswspace): New macro.
* gdk/gdktype.h
(GdkWChar): New typedef.

* gtk/gtkentry.h, gtk/gtkentry.c
There are many changes according to the change of the
internal representation of text, from multibyte string
to wide characters.
* gtk/gtkprivate.h, gtk/gtkmain.c
Removed the variable gtk_use_mb and related codes.
* gtk/gtkspinbutton.c
Some changes according to the change of type of entry->text.
* gtk/gtktext.h, gtk/gtktext.c
Changed the internal representation of text. We use GdkWchar
if a fontset is supplied. If not, we use guchar to save
memory.
35 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/Makefile.am
gdk/gdk.c
gdk/gdk.h
gdk/gdkdraw.c
gdk/gdkfont.c
gdk/gdkglobals.c
gdk/gdki18n.h
gdk/gdkprivate.h
gdk/gdktypes.h
gdk/gdkwindow.c
gdk/x11/gdkfont-x11.c
gdk/x11/gdkglobals-x11.c
gdk/x11/gdkmain-x11.c
gdk/x11/gdkwindow-x11.c
gtk/gtkeditable.c
gtk/gtkeditable.h
gtk/gtkentry.c
gtk/gtkentry.h
gtk/gtkmain.c
gtk/gtkprivate.h
gtk/gtkspinbutton.c
gtk/gtktext.c
gtk/gtktext.h
gtk/gtkwidget.c
gtk/testgtk.c
gtk/testgtkrc
tests/testgtk.c
tests/testgtkrc